import app_fota
import ql_fs

fota = app_fota.new()


fota.download('https://images.bodyta.com/411APP_quick.bin', '/ota1.bin')

fota.download('https://images.bodyta.com/411APP.bin', '/ota.bin')

ret = ql_fs.path_exists("/usr/.updater/ota1.bin")
print("OTA1.bin exist:{}".format(ret))

ret1 = ql_fs.path_exists("/usr/.updater/ota.bin")
print("OTA.bin exist:{}".format(ret1))


fileSize=ql_fs.path_getsize('/usr/.updater/ota1.bin')
print(fileSize)

fileSize=ql_fs.path_getsize('/usr/.updater/ota.bin')
print(fileSize)